{% load i18n %}
{% extends "main.html" %}
{% block subtitle %}
{% trans "Komunikaty" %}
{% endblock %}

{% block content %}
{% if obj %}
  <div>
    <h3>{{ obj.title }}</h3>
    {{ obj.text }}<br />
    Data komunikatu: {{ obj.pub_date|date:"d-m-Y" }}
  </div>
  {% if prev %}<a href="/announcements/previous/">Poprzednie</a>{% endif %}
{% else %}
  {% if list %}
    {% for obj in list %}
      <div>
        <h3>{{ obj.title }}</h3>
        {{ obj.text }}<br />
        Data komunikatu: {{ obj.pub_date|date:"d-m-Y" }}
      </div>
    {% endfor %}
  {% else %}
    Brak komunikatów
  {% endif %}
{% endif %}
{% endblock %}
